package org.elepower.dao;

import org.apache.ibatis.annotations.Param;
import org.elepower.pojo.PsSolvetaskMain;

import java.util.List;

public interface SolveMainDao extends Common<PsSolvetaskMain,Integer> {


    /**
     * 根据任务编号更改消缺任务状态(改为已取消)
     * @param taskId
     */
    public void updateTaskState(Integer taskId);

    /**
     * 修改任务状态
     * @param taskStateId
     * @param taskStateName
     * @param taskId
     */
    public void updateSolveState(@Param("taskStateId")Integer taskStateId,@Param("taskStateName")String taskStateName,@Param("taskId")Integer taskId);

    /**
     * 条件查询没有取消的消缺任务
     * @param psSolvetaskMain
     * @return
     */
    public List<PsSolvetaskMain> getNoCancelTask(PsSolvetaskMain psSolvetaskMain);

    /**
     * 回执消缺任务信息
     * @param psSolvetaskMain
     */
    public void returnSolveTask(PsSolvetaskMain psSolvetaskMain);

    /**
     * 修改任务消缺员列
     * @param taskId
     * @param solvers
     */
    public void updateTaskSolvers(@Param("taskId") Integer taskId,@Param("solvers") String solvers);

    /**
     * 查询所有缺陷
     * @param psSolvetaskMain
     * @return
     */
    public List<PsSolvetaskMain> solverSelect(PsSolvetaskMain psSolvetaskMain);
}
